package cn.mumzone.pos.presenter.contract;

import cn.mumzone.basic.mvp.BasePresenter;
import cn.mumzone.basic.mvp.BaseView;
import cn.mumzone.pos.model.BillDetailEntity;
import cn.mumzone.pos.model.MemberEntity;
import cn.mumzone.pos.model.RechargeDetailEntity;

/**
 * Created By Dlx
 * on 2019/7/3
 */
public interface MemberDetailContract {
    interface View extends BaseView {
        void showToast(String srr);

        void setMemberDetailData(MemberEntity memberEntity);

        void setTimesCardNum(String timeCardNum);

        void setDepositGoodsNum(String depositGoodsNum);

        void onSettleRechargeSuccess();

        void resetScanCodeStatus();

        void showWaitingDialog(boolean b);

        void showRechargeSettleError(int code, String msg);

        void doPrintAfterSettleSuccess(RechargeDetailEntity billDetailEntity);

        void showTimeChanged(long time);

        void openDrawer();

        void showSunMiPayNetError();
    }

    interface Presenter extends BasePresenter<View> {
        void getMemberDetail(String phone);

        void onEvent();

        void settleOrderWithCash(String trim);

        void executeScanCode(String scanCode, String toPayAmount);

        void settleOrderWithBank(String toPayAmount);

        void executeFacePay(String toPayAmount);

        void querySmPayOrderInfo(boolean iSilent);
    }
}
